package com.challenge.Shelf;

import lombok.Data;

import java.util.Map;

/**
 * @date 2019/7/4
 */

public class ShelfContent {
    private static ShelfContent instance;

    private Map<String, BaseShelf> content;

    private ShelfContent(){}

    public static synchronized ShelfContent getInstance(Map content){
        if(instance==null){
            instance=new ShelfContent();
            instance.setContent(content);
        }
        return instance;
    }

    public Map<String, BaseShelf> getContent() {
        return content;
    }

    public void setContent(Map<String, BaseShelf> content) {
        this.content = content;
    }
}
